﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
<%@ Import Namespace="GiveGraphModel" %>
<%@ Import Namespace="WebApp.Models" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Add Service Request</h2>

    <div id="voluteering-content">   
        <div id="TypeofVolunteering">
        <% Html.RenderPartial("Container", new Container("Type of Volunteering", "CheckList", new Tuple<IEnumerable<string>, bool>(AppConstants.TypeOfVolunteering, true))); %>
        </div>
        <div id="Destinataries">
        <% Html.RenderPartial("Container", new Container("Destinataries", "CheckList", new Tuple<IEnumerable<string>, bool>(AppConstants.Destinataries, true))); %>
        </div>
        <div id="AreaofVolunteering">
        <% Html.RenderPartial("Container", new Container("Area of Volunteering", "CheckList", new Tuple<IEnumerable<string>, bool>(AppConstants.AreaofVolunteering, true))); %>
        </div>
        
        <% Html.RenderPartial("Container", new Container("Availability Schedule", "Scheduler", new List<Schedule>())); %> 
    </div> 

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MetaTagsContent" runat="server">    

    <script type="text/javascript" src="../../Scripts/UserService/scheduler.js">
   
    </script>

    <script type="text/javascript" src="../../Scripts/UserService/ProfileController.js">
   
    </script>
   
    <script type="text/javascript">
        ProfileModel.SCHEDULE = "schedule";
        ProfileModel.TYPEOFVOLUNTEERING = "typesOfVolunteering";
        ProfileModel.DESTINATARIES = "destinataries";
        ProfileModel.AREASOFVOLUNTEERING = "areasOfVolunteering";
        ProfileModel.SEVERACTIONMETHOD = "./AddServiceRequest";
        //ProfileModel.SEVERACTIONMETHOD = "localhost:50630/Service/UpdateServices";
    </script>

</asp:Content>
